package net.asciiworks.filesyncr.view.contentPane {
    import flash.filesystem.File;
    
    import mx.collections.ArrayCollection;
    
    import net.asciiworks.filesyncr.model.DataProxy;
    
    import org.puremvc.as3.interfaces.IMediator;
    import org.puremvc.as3.patterns.mediator.Mediator;

    public class StatusMediator extends Mediator implements IMediator {
        public static const NAME:String = "StatusMediator";
		
		private var dataProxy:DataProxy;

        public function StatusMediator(viewComponent:Status) {
            super(NAME, viewComponent);
        }
		
		public function listFiles(files:ArrayCollection, relativeDirectory:File):void {
			status.paths.dataProvider = files;
		}

        private function get status():Status {
            return viewComponent as Status;
        }
    }
}